import request from '../utils/request.js'

/**
 * 报修列表查询
 */
export function repairList() {
  return request({
    url: '/repair/repairList',
    method: 'get'
  })
}

/**
 * 添加报修记录
 */
export function addService(param) {
  return request({
    url: '/repair/addService',
    method: 'post',
    data: param
  })
}

/**
 * 更新报修记录
 * @param {*} param 
 */
export function alterService(param) {
  return request({
    url: '/repair/alterService',
    method: 'post',
    data: param
  })
}

/**
 * 查询报修记录
 * @param {*} param 
 */
export function getServiceInfo(param) {
  return request({
    url: '/repair/getServiceInfo',
    method: 'post',
    data: param
  })
}

/**
 * 提交客户确认单
 * @param {*} param 
 */
export function clientSure(param) {
  return request({
    url: '/repair/clientSure',
    method: 'post',
    data: param
  })
}